package cn.edu.zua.demo12.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 说明：
 *
 * @author ascend
 * 2019/1/24 22:28
 */
@RestController
public class IndexController {
    private static final Logger log = LoggerFactory.getLogger(IndexController.class);

    @GetMapping("/index")
    public String index() {
        log.debug("记录debug日志");
        log.info("访问了index方法");
        log.error("记录error错误日志");
        return "index";
    }
}
